import http from "@/utils/http";

/** 角色 */
export class UserApi {
   /** 添加角色 */
   static readonly Create = (params: User.Create) => http.post("/api/user/create", params);

   /** 编辑角色 */
   static readonly Update = (params: User.Update) => http.post("/api/user/update", params);

   static readonly Delete = (params: User.Delete) => http.post("/api/user/delete", params);

   static readonly Search = (params: User.Search) => http.get("/api/user/search", params);

   /** 激活账户 */
   static readonly Action = (params: User.Action) => http.post("/api/user/action", params);

   /** 密码相关 */
   static readonly Password = {
      /** 重置密码 */
      Reset: (params: User.Password.Reset) => http.post("/api/user/password/reset", params)
   };
}
